<script>
	export default {
		onLaunch: function() {
			let token = uni.getStorageSync('logintoken') || '';
			if (token) {
				this.$store.dispatch('getuserInfo');
			}
		},
		onShow: function() {
			let selectActive = uni.getStorageSync('currency')
			this.$store.commit("saveCurrency", selectActive)
			let lang = uni.getStorageSync('lang')
			this.$store.commit("saveLang", lang)
		},
		globalData: {},
		methods: {

		}
	}
</script>

<style lang="scss">
	/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
	@import "uview-ui/index.scss";
	/*每个页面公共css */
	@import '@/static/css/common.css';

	.status_bar {
		height: var(--status-bar-height);
		width: 100%;
		background-color: #ffffff;
	}

	.top_view {
		height: var(--status-bar-height);
		width: 100%;
		position: fixed;
		background-color: #ffffff;
		top: 0;
		z-index: 999;
	}

	body {
		/* #ifdef H5 */
		max-width: 450px;
		margin: 0 auto;
		/* #endif */
	}

	/* #ifdef H5 */
	@media (min-width: 445px) {
		body {
			background: #f5f5f5 !important;
		}

		.uni-tabbar,
		.uni-page-head {
			width: 450px;
			margin: 0 auto;
		}
	}
	/* #endif */
	page {
		min-height: 100vh;
		background-color: #f5f5f5;
		color: #2B303C;
	}
</style>